#!/bin/bash
#
link=$(mysql -uroot -pWWW.1.com -e "show processlist" 2> /dev/null | awk 'NR>1'| wc -l)
if [ $link -gt 10 ];then
	echo "警告"
else
	echo "正常" 
fi
